from django.contrib import admin

# Register your models here.

from .models import ArticleCategory,Article


@admin.register(ArticleCategory)
class ArticleCategoryAdmin(admin.ModelAdmin):
    list_display = ("cate_name", "cate_alias","creator")
    ordering = ("id",)
    
    
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
    list_display = ("title", "content", "cover_img",'status',"creator")
    ordering = ("-id",)
    list_filter = ("cate_id",)